package myzzyl.mapper;

import myzzyl.domain.pojo.SysResource;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import myzzyl.domain.vo.MenuVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
* @author 33249
* @description 针对表【sys_resource(权限表)】的数据库操作Mapper
* @createDate 2025-08-18 17:51:42
* @Entity myzzyl.domain.pojo.SysResource
*/
public interface SysResourceMapper extends BaseMapper<SysResource> {


    @Delete("delete from sys_resource where parent_resource_no = #{resourceNo}")
    void deleteByParentSource(String resourceNo);

    List<String> selectButtonResourcesByUserId(Long id);

    List<MenuVo> selectMenuResourcesByUserId(Long id);
}




